<template>
	<view class="content">
		<view class="list">
			<view class="list-nik">
				<view v-for="item in city" :key="item.value">
					<view class="list-item" @click="itemClick(item.label)">
						<span>{{item.label}}</span>
						<u-icon name="arrow-right" color="#BFBFBF" size="28"></u-icon>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import city from '../../../../utils/city.js'
	export default {
		data () {
			return {
				city: []
			}
		},
		onLoad (option) {
			let index = parseInt(option.index)
			this.city = city[index]
		},
		methods: {
			itemClick (label) {
				uni.navigateTo({
					url: '../orientation?address=' + label
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		display: flex;
		flex-direction: column;
		padding: 20rpx 30rpx 0 30rpx;
		.list-item{
			width: 100%;
			height: 100rpx;
			font-size: 28rpx;
			font-weight: 400;
			color: #333333;
			line-height: 40rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex-direction: row;
			border-bottom: 2rpx solid #EEEEEE;
		}
		.list-nik{
			width: 100%;
			display: flex;
			flex-direction: column;
		}
		.list{
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>
